PROGRAM ON MACROS WITH ARGUMENTS
#define SUM(a,b) a+b
void main()
{
int a,b;
printf("Enter
two numbers");
scanf("%d%d",&a,&b);
printf("Sum=%d",SUM(a,b));
}
OUTPUT:
Enter two numbers:30 20
Sum=50
import java.util.Scanner; public class pattern3 { public static void main(String args[]) { int i,j; Scanner sc=new Scanner(System.in); Syste...
No comments:
Post a Comment