Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Monday, 6 June 2016

PROBLEM 35:
Input two characters and swap their values.
Code:

#include<stdio.h>
main ()
{
char a;
char b;
char c;
printf("Enter two any  charcter:");
scanf("%c %c",&a,&b);
printf("you enter first character is '%c' and second is '%c'\n",a,b);
c=b;
b=a;
printf("************after snaaping*********\n");
printf("after snap your first character is '%c' and second is '%c'",c,b);
return 0;
}

Program Output:






For more problems click here

No comments:

Post a Comment